package com.zhc.dejingapi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 水煮开始任务表
 * </p>
 *
 * @author zhc
 * @since 2024-08-10
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("qing_waterboiltaskstart")
@ApiModel(value = "QingWaterboiltaskstartEntity对象", description = "水煮开始任务表")
public class QingWaterboiltaskstartEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("表主键")
    @TableId(value = "main_id", type = IdType.AUTO)
    private Long mainId;

    @ApiModelProperty("数据ID")
    @TableField("qingApplyId")
    private Long qingApplyId;

    @ApiModelProperty("下载批次")
    @TableField("downBatchId")
    private String downBatchId;

    @ApiModelProperty("编号")
    @TableField("qingRowCode")
    private String qingRowCode;

    @ApiModelProperty("申请人")
    @TableField("qingApplyUser")
    private String qingApplyUser;

    @ApiModelProperty("申请日期")
    @TableField("qingApplyDate")
    private LocalDateTime qingApplyDate;

    @ApiModelProperty("更新日期")
    @TableField("qingUpdateDate")
    private LocalDateTime qingUpdateDate;

    @ApiModelProperty("当前流程状态")
    @TableField("qingRowState")
    private String qingRowState;

    @ApiModelProperty("水煮任务单号")
    @TableField("workTaskCode")
    private String workTaskCode;

    @ApiModelProperty("剩余未清数")
    @TableField("leaveQty")
    private Integer leaveQty;

    @ApiModelProperty("员工工号")
    @TableField("psnCode")
    private String psnCode;

    @ApiModelProperty("生产人员")
    @TableField("psnName")
    private String psnName;

    @ApiModelProperty("已完成数")
    @TableField("finishedQty")
    private Integer finishedQty;

    @ApiModelProperty("标准水煮时长(小时)")
    @TableField("needBoilTime")
    private Double needBoilTime;

    @ApiModelProperty("预计结束时间")
    @TableField("planEndTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime planEndTime;

    @ApiModelProperty("计划数")
    @TableField("planQty")
    private Integer planQty;

    @ApiModelProperty("产品名称")
    @TableField("invName")
    private String invName;

    @ApiModelProperty("班次")
    @TableField("shiftName")
    private String shiftName;

    @ApiModelProperty("水煮框")
    @TableField("cartonName")
    private String cartonName;

    @ApiModelProperty("水煮箱号")
    @TableField("cartonCode")
    private String cartonCode;

    @ApiModelProperty("产品编号")
    @TableField("invCode")
    private String invCode;

    @ApiModelProperty("开始时间")
    @TableField("startBoilTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startBoilTime;

    @ApiModelProperty("注塑机台")
    @TableField("eqCode")
    private String eqCode;

    @ApiModelProperty("单框数量")
    @TableField("eachCartonQty")
    private Integer eachCartonQty;


    @ApiModelProperty("水煮框状态")
    @TableField("cartonStatus")
    private String cartonStatus;


}
